package com.itheima.a01exceptiondemo;

public class ExceptionDemo3 {
    public static void main(String[] args) {
        //自己处理异常
        /*
        try{

        }catch(){

        }
         */

        int[] arr = new int[5];


        try{
            int num=10/0;
            arr[6]=2;
            System.out.println("try异常代码下面的代码");
        }catch (ArrayIndexOutOfBoundsException|ArithmeticException e){
            System.out.println("处理方法");
        }catch (Exception e){
            System.out.println("exception");
        }

        System.out.println("aa");
    }
}
